package com.iasku.manager;

import com.iasku.util.IaskuUtil;

import android.content.Context;

public class IaskuManager {
    private static IaskuManager manager;
    private Context mContext;
    private int mSubjectId;
    private String mSubjectName;
    
    private IaskuManager(){
        
    }
    
    public static IaskuManager getInstance(){
        if(manager == null){
            manager = new IaskuManager();
        }
        return manager;
    }
    
    public void setContext(Context mContext){
        this.mContext = mContext;
    }
    
    public Context getContext(){
        return mContext;
    }
    
    public void setSubjectId(int subjectId){
        this.mSubjectId = subjectId;
        this.mSubjectName = IaskuUtil.getSubjectName(mContext,subjectId);
    }
    
    public int getSubjectId(){
        return mSubjectId;
    }
    
    public String getSujectName(){
        return mSubjectName;
    }
}
